package com.richinfo.stream.consumer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;

import com.richinfo.stream.provider.SinkProvider;

/**
 * RabbitMQ消息的消费者
 * 
* Created by WangXJ
* 2018-11-24 14:50
*/
//@EnableBinding(value = {Sink.class,SinkProvider.class})
public class SinkConsumer {
	
	private static Logger logger = LoggerFactory.getLogger(SinkConsumer.class);
	
//	@StreamListener(Sink.INPUT)
	public void receive(Object payload) {
		logger.info("Received : " + payload);
	}
	
}
